<!DOCTYPE html>
<html>
<!-- 培训归档 -->

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

</head>

<body>
    <div id="app" class="popupW100" v-cloak>
        <el-form label-position="right" :model="Form" status-icon :rules="rules" ref="ruleForm" label-width="100px"
            size="mini">
            <el-row>
                <el-col :span="8">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input type="text" v-model="Form.name" autocomplete="off" size="mini">
                                <template slot="prepend">
                                    {{TrainingArchive.name+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
                <el-col :span="2">
                    <el-button @click=TrainingArchiveInput() class="fr">{{col.Choose}}</el-button>
                </el-col>
                <el-col :span="11" :offset="2">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input type="text" v-model="Form.goalScore" autocomplete="off" size="mini">
                                <template slot="prepend">
                                    {{TrainingArchive.goalScore+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
            </el-row>
            <el-row type="flex" justify="end">
                <el-form-item>
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnSave}}</el-button>
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnCommit}}</el-button>
                    <el-button type="primary" @click="parent.ListItem.dialogVisible=false">{{col.btnBack}}</el-button>
                </el-form-item>
            </el-row>
        </el-form>
        <el-dialog title="履职职责落实情况管理人员添加" fullscreen="true" :visible.sync="ListItem.dialogVisible" @close='closeDialog' width="80%"
            height="80%" top="10vh">
            <iframe ref="iframe" :src="ListItem.InputUrl" style="height:95%;width:100%" frameborder="0"></iframe>
        </el-dialog>
    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                //表单内容
                ListItem: ListItem,
                formInline: {
                    model: { name: '', goalScore: '' },
                    offset: 0,
                    limit: 10
                },
                id: '',
                //业务表单内容
                Form: {
                    id: guidEmpty,
                    name: '',
                },
                //表单验证
                rules: {

                }

            },

            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                //提交数据
                onSubmitForm: function (formName) {
                    var mythis = this;
                    this.$refs[formName].validate(function (valid) {
                        //验证通过
                        if (valid) {

                            onSubmitForm(this, '/api/TrainingArchive/SaveUser', mythis.Form);
                        } else {
                            //验证失败

                            return false;
                        }
                    });

                },

                getData: function () {
                    getData(this, '/api/TrainingArchive/getParents?id=' + this.id);
                },
                //Dialog展示
                TrainingArchiveInput: function (val, id) { DialogShow(this, val, "TrainingArchiveInputUserPerson.html", id); },
            },
            mounted: function () {
                this.id = getUrlParam("id");
                this.getData();
                //初始化数据
                // this.GetPageData(1);
                //列表高度自适应
                tablehigh(this);
            },

        });
    </script>
</body>

</html>